import { get, post, del, put } from '../utils/request'

// ==================== 会议管理相关 API ====================

// 参会人员-添加参会人员
export const postAddParticipant = (params) => {
  return post('/meeting/addParticipant', params)
}

// 会议-取消会议
export const postCancelMeeting = (params) => {
  return get('/meeting/cancel', params)
}

// 会议-创建会议
export const postCreateMeeting = (params) => {
  return post('/meeting/create', params)
}

// 会议-删除会议
export const deleteMeeting = (params) => {
  return del('/meeting/delete/'+params.meetingId)
}

// 共享文件-删除会议文件
export const deleteMeetingFile = (params) => {
  return get('/meeting/deleteFile',params)
}

// 会议-获取会议详情
export const getMeetingDetail = (params) => {
  return get('/meeting/detail', params)
}

// 共享文件-会议文件列表
export const getMeetingFileList = (params) => {
  return get('/meeting/fileList', params)
}

// 会议-加入会议
export const postJoinMeeting = (meetingId) => {
  return get(`/meeting/join/${meetingId}`)
}


//会议-分页查询会议列表（多维度)
export const getMeetingList = (params) => {
  return get('/meeting/page', params)
}

// 参会人员-获取参会人员列表
export const getParticipantList = (params) => {
  return get('/meeting/participants', params)
}

// 参会人员-移除参会人员
export const postRemoveParticipant = (params) => {
  return get('/meeting/removeParticipant', params)
}

// 共享文件-保存会议文件
export const postSaveMeetingFile = (params) => {
  return post('/meeting/saveFile',params)
}

// 会议-编辑会议
export const postEditMeeting = (params) => {
  return post('/meeting/update', params)
}



